<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>我的借阅</title>
</head>
<body>
    <h1>我的借阅图书</h1>
    
    {% if bookinstance_list %}
        <ul>
        {% for bookinst in bookinstance_list %}
            <li class="{% if bookinst.is_overdue %}text-danger{% endif %}">
                <a href="{% url 'book-detail' bookinst.book.pk %}">{{ bookinst.book.title }}</a>
                ({{ bookinst.due_back }})
                {% if bookinst.status == 'o' %}
                    - <a href="{% url 'renew-book-librarian' bookinst.id %}">续借</a>
                {% endif %}
            </li>
        {% endfor %}
        </ul>
    {% else %}
        <p>您当前没有借阅任何图书。</p>
    {% endif %}
    
    <p><a href="{% url 'index' %}">返回首页</a></p>
</body>
</html> 